This is a path for bug #3440850
This patch is a one-liner and an example that we shouldn't use a single object (like Dimension instance here) as an argument for different api calls, especially when changing value of the object between invocations. This resulted in setting preferredSize of a panel to Integer.MAX_VALUE. Being so small and obvious, this patch shouldn't make problem to apply it.
The plugin now lacks preferredSize setting. I only fixed the bug.