FileChooserDescriptor () { FileChooserDescriptor descriptor = new FileChooserDescriptor(false, true, false, false, false, false) { @Override public boolean isFileSelectable(@Nullable VirtualFile file) { if (!super.isFileSelectable(file)) { return false; } return findManager(file) != null; } }; descriptor.setTitle(GroovyBundle.message("framework.0.sdk.chooser.title", myFrameworkName)); descriptor.setDescription(GroovyBundle.message("framework.0.sdk.chooser.description", myFrameworkName)); return descriptor; }