mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
only allow to create anchors for existing PSI
This commit is contained in:
@@ -48,7 +48,7 @@ public abstract class PsiAnchor {
|
||||
public abstract int getStartOffset();
|
||||
public abstract int getEndOffset();
|
||||
|
||||
public static PsiAnchor create(final PsiElement element) {
|
||||
public static PsiAnchor create(@NotNull final PsiElement element) {
|
||||
LOG.assertTrue(element.isValid());
|
||||
|
||||
if (element instanceof PsiFile) {
|
||||
|
||||
Reference in New Issue
Block a user