PsiMethodPattern (@NotNull final Object key) { return PsiJavaPatterns.psiMethod().with(new PatternCondition<>("GrLightMethodBuilder") { @Override public boolean accepts(@NotNull PsiMethod method, ProcessingContext context) { return GrLightMethodBuilder.checkKind(method, key); } }); }