boolean (final Class controlClass, final Module module) { PsiClass aClass = JavaPsiFacade.getInstance(myProject).findClass(controlClass.getName(), module.getModuleWithLibrariesScope()); return aClass != null && aClass.findMethodsByName("setDisplayedMnemonicIndex", true).length > 0; }