JQueryAPI#getJavaModelElement(Object) does not return the method if it contains array parameters (e.g. main(String[]). The actual bug is in JQueryTyRuBaAPI#getMethodName(IMethod), in which brackets are used as string delimiters:
private static String getMethodName(IMethod m) throws JavaModelException {
// so this is kind of "hack-ish" but it seems to work...
String result = m.toString();
result = result.substring(0, result.indexOf("["));
// remove white spaces
result = result.replaceAll("\\p{Space}", "");
return result;
}
Suggestion for fix:
private static String getMethodName(IMethod m) throws JavaModelException {
String result = JavaElementLabels.getElementLabel(m, JavaElementLabels.ALL_DEFAULT);
return result;
}