void () { final StructuralSearchProfile profile = StructuralSearchUtil.getProfileByFileType(myFileType); myShortenFqn.setVisible(profile != null && profile.supportsShortenFQNames()); myStaticImport.setVisible(profile != null && profile.supportsUseStaticImports()); }