ignore lombok generated methods

EA-86304 - assert: PsiDiamondTypeUtil.areTypeArgumentsRedundant
This commit is contained in:
Anna Kozlova
2016-09-01 16:38:43 +03:00
parent 34f9985cbc
commit 5eacecf2b6
@@ -189,7 +189,10 @@ public class PsiDiamondTypeUtil {
if (method != null && method.getContainingFile() == containingFile) {
final PsiElement startMethodElementInCopy = fileCopy.findElementAt(method.getTextOffset());
method = PsiTreeUtil.getParentOfType(startMethodElementInCopy, PsiMethod.class);
LOG.assertTrue(method != null, startMethodElementInCopy);
if (method == null) {
//lombok generated builder
return false;
}
}
}
}