String (@NotNull ShFile file) { VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null && virtualFile.exists()) { ASTNode shebang = file.getNode().findChildByType(ShTypes.SHEBANG); String prefix = "#!"; if (shebang != null && shebang.getText().startsWith(prefix)) { return shebang.getText().substring(prefix.length()).trim(); } } return null; }