mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-76564 Support DetachedCriteria.
Support 'projections' section
This commit is contained in:
+8
@@ -342,6 +342,14 @@ public class GrLightMethodBuilder extends LightElement implements GrMethod {
|
||||
return method instanceof GrLightMethodBuilder && kind.equals(((GrLightMethodBuilder)method).myMethodKind);
|
||||
}
|
||||
|
||||
public static boolean checkKind(@Nullable PsiElement method, @NotNull Object kind1, @NotNull Object kind2) {
|
||||
if (method instanceof GrLightMethodBuilder) {
|
||||
Object kind = ((GrLightMethodBuilder)method).getMethodKind();
|
||||
return kind1.equals(kind) || kind2.equals(kind);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return myMethodKind + ":" + getName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user