boolean (String methodName, boolean annoOnly) { if (methodName == null) return false; if (getAnnotatedElementsValue(project).contains(methodName)) { return true; } if (!annoOnly && getXmlAnnotatedElementsValue(project).contains(methodName)) { return true; } return false; }