use of com.intellij.psi.jsp.BaseJspFile in project intellij-community by JetBrains.
the class JspContextManager method getRootContextFile.
@NotNull
public BaseJspFile getRootContextFile(@NotNull BaseJspFile file) {
BaseJspFile rootContext = file;
HashSet<BaseJspFile> recursionPreventer = new HashSet<>();
do {
recursionPreventer.add(rootContext);
BaseJspFile context = getContextFile(rootContext);
if (context == null || recursionPreventer.contains(context))
break;
rootContext = context;
} while (true);
return rootContext;
}
Aggregations