Fixed EA-57220.

This commit is contained in:
Evgeny Gerashchenko
2014-10-10 23:17:42 +04:00
parent b653598df2
commit fbcfed6757
7 changed files with 35 additions and 2 deletions
@@ -818,7 +818,7 @@ public class JetPsiUtil {
}
@Nullable
public static JetElement getEnclosingElementForLocalDeclaration(@Nullable JetDeclaration declaration) {
public static JetElement getEnclosingElementForLocalDeclaration(@NotNull JetDeclaration declaration) {
if (declaration instanceof JetTypeParameter) {
declaration = PsiTreeUtil.getParentOfType(declaration, JetNamedDeclaration.class);
}